package com.rtx.wms.std.so.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.rtx.api.annotation.RtxSTDRequest;

import java.time.LocalDateTime;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 出库单回传中间表
 * </p>
 *
 * @author wq
 * @since 2023-04-20
 */
@RtxSTDRequest(name = "出库单回传中间表")
@Data
@TableName("api_ordersfinish")
@ApiModel(value = "ApiOrdersfinish对象", description = "出库单回传中间表")
public class ApiOrdersfinish {

    @ApiModelProperty("主键")
    @TableId(type = IdType.AUTO)
    private Long serialkey;

    @ApiModelProperty("仓库号")
    private String whseid;
    
    private String externalorderkey2;
    
    private String rtxpurgroup;
    
    private String rtxsalesgroup;

    @ApiModelProperty("上游系统")
    private String source;

    @ApiModelProperty("单据类型")
    private String type;

    @ApiModelProperty("wms单号")
    private String orderkey;

    @ApiModelProperty("外部单号")
    private String externorderkey;

    @ApiModelProperty("状态")
    private String status;

    @ApiModelProperty("物流公司编码")
    private String carriercode;

    @ApiModelProperty("物流公司名称")
    private String carriername;

    @ApiModelProperty("运单号")
    private String rtxexpresskey;

    @ApiModelProperty("订单完成时间")
    private String actualshipdate;

    @ApiModelProperty("奇门单据类型")
    private String rtxqmtype;

    @ApiModelProperty("奇门方法名")
    private String rtxqmmethod;

    @ApiModelProperty("回传状态")
    private String ediflag;

    @ApiModelProperty("回传状态")
    private String edimsg;

    @ApiModelProperty("回传次数")
    private Integer rtxqueue;

    @ApiModelProperty("新增用户")
    private String addwho;

    @ApiModelProperty("新增日期")
    private String adddate;

    @ApiModelProperty("修改用户")
    private String editwho;

    @ApiModelProperty("修改日期")
    private String editdate;

    private String batchid;

    private String qmcustomerid;
    
    private String storerkey;
    
    private String rtxcarriercode;
    
    private String default01;

    private String default02;

    private String default03;

    private String default04;

    private String default05;

    private String default06;

    private String default07;

    private String default08;

    private String default09;

    private String default10;
    
    private String consigneekey;
    
    @ApiModelProperty("上位单据类型")
    private String rtxbsart;
    

    @TableField(exist = false)
    private List<ApiOrderdetailfinish> details;
    
    @TableField(exist = false)
    private List<Pickdetail> pickdetails;
    
    //格瑞普字段
    private String rtxbiznat;
    private String toexamine;
    private String totalorderlines;
    private String lottable01;
    private String rtxiscontainer;
    private String rtxexternorderkey2;
    
    //调用riswms标准发运逻辑
    private String callshipediflag;
    private String callshipmsg;

}
